package com.github.itdachen.quartz.config;

import com.github.itdachen.boot.logger.interceptor.LoggerMDCInterceptor;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * SpringMvcConfig
 *
 * @author 剑鸣秋朔
 * @date 2025/11/21 21:10
 */
@Component
public class QuartzJobSpringMvcConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LoggerMDCInterceptor())
                .addPathPatterns("/**");

    }

}
